//
//  RMMRegionTableViewCell.m
//  Romomo
//
//  Created by puman on 16/10/8.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMRegionTableViewCell.h"

@implementation RMMRegionTableViewCell
{
    UILabel *_label;
    UIImageView *_imageV;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self= [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, kScreenWideth - 49, 49)];
        _label.textColor = COLORFROMCODE(0x4A4A4A, 1);
        _label.font = kFont(16);
        [self.contentView addSubview:_label];
        
        _imageV = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWideth - 34, 49 / 2 - 12, 24, 24)];
        _imageV.image = [UIImage imageNamed:@"定位@3x"];
        _imageV.hidden = YES;
        [self.contentView addSubview:_imageV];
    }
    return self;
}
- (void)setCityName:(NSString *)cityName{
    _label.text = cityName;
//    NSString *name = [[RMMFileManager shareHandle] getValeForKey:@"currentCity"][@"ORG_NAME"];
//    if ([cityName isEqualToString:name]) {
//        _label.textColor = COLORFROMCODE(0x53C7C6, 1);
//        _imageV.hidden = NO;
//    } else {
//        _label.textColor = COLORFROMCODE(0x4A4A4A, 1);
//        _imageV.hidden = YES;
//    }
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
